﻿using System.Collections;

/// <summary>
/// 协同对象, 处理异步过程的标记;
/// 仅仅考虑了yield的情况,其他需要勿用;
/// </summary>
public class CoroutineObject : IEnumerator
{
    public void Reset()
    {

    }

    object IEnumerator.Current
    {
        get
        {
            return Current;
        }
    }

    int Current
    {
        get
        {
            return 0;
        }
    }

    /// <summary>
    /// 返回true代表没结束;
    /// 返回false代表结束了;
    /// </summary>
    /// <returns></returns>
    public virtual bool MoveNext()
    {
        return false;
    }
}
